package com.mall.user.api;

import com.mall.user.entity.param.PermissionAddParam;
import com.mall.user.entity.param.PermissionEditParam;
import com.mall.user.entity.vo.PermissionVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wuyijie
 * @description: TODO 权限Permission API定义
 * @date 2021/6/20 18:34
 */
public interface PermissionApi {
    PermissionVO add(@RequestBody PermissionAddParam permissionAddParam);

    int deleteById(@RequestParam int id);

    PermissionVO edit(@RequestBody PermissionEditParam permissionEditParam);

    PermissionVO queryById(@RequestParam int id);
}
